package com.framework.admin.repository;

import com.framework.admin.model.SysMenu;
import com.framework.common.repository.BaseJpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuRepository extends BaseJpaRepository<SysMenu, String> {
    SysMenu getTopByCode(String code);

    void deleteByIdIn(List<String> ids);

    SysMenu findByCode(String code);
}
